home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / etc / pam.d / login < prev    next >
Encoding:
Text File  |  2009-04-04  |  3.5 KB  |  91 lines

  1. #
  2. # The PAM configuration file for the Shadow `login' service
  3. #
  4.  
  5. # Enforce a minimal delay in case of failure (in microseconds).
  6. # (Replaces the `FAIL_DELAY' setting from login.defs)
  7. # Note that other modules may require another minimal delay. (for example,
  8. # to disable any delay, you should add the nodelay option to pam_unix)
  9. auth       optional   pam_faildelay.so  delay=3000000
  10.  
  11. # Outputs an issue file prior to each login prompt (Replaces the
  12. # ISSUE_FILE option from login.defs). Uncomment for use
  13. # auth       required   pam_issue.so issue=/etc/issue
  14.  
  15. # Disallows root logins except on tty's listed in /etc/securetty
  16. # (Replaces the `CONSOLE' setting from login.defs)
  17. auth       [success=ok ignore=ignore user_unknown=ignore default=die]  pam_securetty.so
  18.  
  19. # Disallows other than root logins when /etc/nologin exists
  20. # (Replaces the `NOLOGINS_FILE' option from login.defs)
  21. auth       requisite  pam_nologin.so
  22.  
  23. # SELinux needs to be the first session rule. This ensures that any 
  24. # lingering context has been cleared. Without out this it is possible 
  25. # that a module could execute code in the wrong domain.  (When SELinux
  26. # is disabled, this returns success.)
  27. session    required   pam_selinux.so close
  28.  
  29. # This module parses environment configuration file(s)
  30. # and also allows you to use an extended config
  31. # file /etc/security/pam_env.conf.
  32. # parsing /etc/environment needs "readenv=1"
  33. session       required   pam_env.so readenv=1
  34. # locale variables are also kept into /etc/default/locale in etch
  35. # reading this file *in addition to /etc/environment* does not hurt
  36. session       required   pam_env.so readenv=1 envfile=/etc/default/locale
  37.  
  38. # Standard Un*x authentication.
  39. @include common-auth
  40.  
  41. # This allows certain extra groups to be granted to a user
  42. # based on things like time of day, tty, service, and user.
  43. # Please edit /etc/security/group.conf to fit your needs
  44. # (Replaces the `CONSOLE_GROUPS' option in login.defs)
  45. auth       optional   pam_group.so
  46.  
  47. # Uncomment and edit /etc/security/time.conf if you need to set
  48. # time restrainst on logins.
  49. # (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
  50. # as well as /etc/porttime)
  51. # account    requisite  pam_time.so
  52.  
  53. # Uncomment and edit /etc/security/access.conf if you need to
  54. # set access limits.
  55. # (Replaces /etc/login.access file)
  56. # account  required       pam_access.so
  57.  
  58. # Sets up user limits according to /etc/security/limits.conf
  59. # (Replaces the use of /etc/limits in old login)
  60. session    required   pam_limits.so
  61.  
  62. # Prints the last login info upon succesful login
  63. # (Replaces the `LASTLOG_ENAB' option from login.defs)
  64. session    optional   pam_lastlog.so
  65.  
  66. # Prints the motd upon succesful login
  67. # (Replaces the `MOTD_FILE' option in login.defs)
  68. session    optional   pam_motd.so
  69.  
  70. # Prints the status of the user's mailbox upon succesful login
  71. # (Replaces the `MAIL_CHECK_ENAB' option from login.defs). 
  72. #
  73. # This also defines the MAIL environment variable
  74. # However, userdel also needs MAIL_DIR and MAIL_FILE variables
  75. # in /etc/login.defs to make sure that removing a user 
  76. # also removes the user's mail spool file.
  77. # See comments in /etc/login.defs
  78. session    optional   pam_mail.so standard
  79.  
  80. # Standard Un*x account and session
  81. @include common-account
  82. @include common-session
  83. @include common-password
  84.  
  85. # SELinux needs to intervene at login time to ensure that the process
  86. # starts in the proper default security context. Only sessions which are
  87. # intended to run in the user's context should be run after this.  (When
  88. # SELinux is disabled, this returns success.)
  89. session required pam_selinux.so open
  90.